﻿
<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"  CodeFile="DailyTrans.aspx.cs" Inherits="Admin_DailyTrans" Title="DailyTrans List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Daily Trans List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="DailyTransDataSource"
				DataKeyNames="VatNumber, CmsNumber"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_DailyTrans.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="UpdPaymentDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Upd Payment Date" SortExpression="[UPD_PAYMENT_DATE]"  />
				<asp:BoundField DataField="UpdPayAcctcode" HeaderText="Upd Pay Acctcode" SortExpression="[UPD_PAY_ACCTCODE]"  />
				<asp:BoundField DataField="PmntModeRevised" HeaderText="Pmnt Mode Revised" SortExpression="[PMNT_MODE_Revised]"  />
				<asp:BoundField DataField="PatientName" HeaderText="Patient Name" SortExpression="[Patient_Name]"  />
				<asp:BoundField DataField="DateVisit" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Date Visit" SortExpression="[DATE_VISIT]"  />
				<asp:BoundField DataField="TotalProc" HeaderText="Total Proc" SortExpression="[TOTAL_PROC]"  />
				<asp:BoundField DataField="TotalPhar" HeaderText="Total Phar" SortExpression="[TOTAL_PHAR]"  />
				<asp:BoundField DataField="TotalAmt" HeaderText="Total Amt" SortExpression="[Total_Amt]"  />
				<asp:BoundField DataField="TotalAmtVnd" HeaderText="Total Amt Vnd" SortExpression="[Total_Amt_VND]"  />
				<asp:BoundField DataField="SrvAmount" HeaderText="Srv Amount" SortExpression="[SRV_AMOUNT]"  />
				<asp:BoundField DataField="SrvPerc" HeaderText="Srv Perc" SortExpression="[Srv_perc]"  />
				<asp:BoundField DataField="VatAmount" HeaderText="Vat Amount" SortExpression="[VAT_AMOUNT]"  />
				<asp:BoundField DataField="VatPerc" HeaderText="Vat Perc" SortExpression="[VAT_Perc]"  />
				<asp:BoundField DataField="VatNumber" HeaderText="Vat Number" SortExpression="[VAT_number]" ReadOnly="True" />
				<asp:BoundField DataField="VatNumberRevised" HeaderText="Vat Number Revised" SortExpression="[VAT_number_revised]"  />
				<asp:BoundField DataField="CmsNumber" HeaderText="Cms Number" SortExpression="[CMS_number]" ReadOnly="True" />
				<asp:BoundField DataField="UpdVatCenter" HeaderText="Upd Vat Center" SortExpression="[UPD_VAT_Center]"  />
				<asp:BoundField DataField="UpdRemark" HeaderText="Upd Remark" SortExpression="[UPD_REMARK]"  />
				<asp:BoundField DataField="RateCurr" HeaderText="Rate Curr" SortExpression="[RATE_CURR]"  />
				<data:BoundRadioButtonField DataField="UpdSunImport" HeaderText="Upd Sun Import" SortExpression="[UPD_SUN_IMPORT]"  />
				<asp:BoundField DataField="UpdSunImportDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Upd Sun Import Date" SortExpression="[upd_SUN_IMport_date]"  />
				<asp:BoundField DataField="UpdInvStat" HeaderText="Upd Inv Stat" SortExpression="[UPD_INV_STAT]"  />
				<asp:BoundField DataField="JobCorp" HeaderText="Job Corp" SortExpression="[JOB_CORP]"  />
				<data:BoundRadioButtonField DataField="Received" HeaderText="Received" SortExpression="[Received]"  />
				<asp:BoundField DataField="ReceivedDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Received Date" SortExpression="[Received_Date]"  />
				<data:BoundRadioButtonField DataField="Returned" HeaderText="Returned" SortExpression="[Returned]"  />
				<asp:BoundField DataField="ReturnedDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Returned Date" SortExpression="[Returned_Date]"  />
				<asp:BoundField DataField="Receptionist" HeaderText="Receptionist" SortExpression="[Receptionist]"  />
				<asp:BoundField DataField="VoidType" HeaderText="Void Type" SortExpression="[VOID_TYPE]"  />
				<asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="[Remark]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No DailyTrans Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnDailyTrans" OnClientClick="javascript:location.href='DailyTransEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:DailyTransDataSource ID="DailyTransDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
		>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:DailyTransDataSource>
	    		
</asp:Content>



